/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.com.minam.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.com.minam.beans.Lugar;
import pe.com.minam.daorepository.LugarDao;

/**
 *
 * @author Willian
 */
@Service
public class LugarCalidadService{

    @Autowired
    private LugarDao lugarDao;

    public List<Lugar> getLugares(){
        return lugarDao.findAll();
    }
    
    public List<Lugar> getLugaresPorDepartamento(String depa, String estado){
        return lugarDao.getLugarPorDepa(Integer.parseInt(depa), estado);
    }
}
